Test Failed
Branch feature/typescript5 (203f49)
by Lorenzo
03:01
created

Router   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A helloRoute 0 4 1
1
import { Request, Response } from 'express';
2
import Service from '@/example/services/Service';
3
import { RouterBean, InjectBean, Route } from '@/main';
4
5
@RouterBean('/example')
6
export default class Router {
7
  @InjectBean(Service)
8
    service!: Service;
9
10
  @Route('GET', '/hello')
11
  helloRoute(_req: Request, res: Response) {
12
    res.send(this.service.hello());
13
  }
14
}
15